package com.zhuoyue.biz.core.api.dto.rep;

import com.zhuoyue.biz.core.api.domain.EzvizTokenDO;
import lombok.Data;

import java.io.Serializable;

/**
 * @author wjming
 * @ClassName: EzvizTokenRepDTO
 * @Description: 萤石子账号token回应对象信息
 * @Date 2021-07-06 13:07
 */
@Data
public class EzvizTokenRepDTO extends BaseRepDTO implements Serializable {
    private String appUserId;


    private String ezvizId;


    private String homeId;


    private String code;


    public EzvizTokenRepDTO ezvizTokenDoToEzvizTokenRepDto(EzvizTokenDO ezvizTokenDO) {
        if (ezvizTokenDO == null) {
            return null;
        }
        setId(ezvizTokenDO.getId());
        setCreateTime(ezvizTokenDO.getCreateTime());
        this.appUserId = ezvizTokenDO.getAppUserId();
        this.ezvizId = ezvizTokenDO.getEzvizId();
        this.homeId = ezvizTokenDO.getHomeId();
        this.code = ezvizTokenDO.getCode();
        return this;
    }

}
